package com.aiit.service;

import com.aiit.pojo.Perms;
import com.aiit.pojo.Role;
import com.aiit.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LuTao
 * @Date: 2022/04/28/14:29
 */
public interface UserService extends IService<User> {
    int register(User user);
    User findByUserName(String username);

    //根据用户名查询所有角色
    User findRolesByUserName(String username);
    //根据角色id查询权限集合
    List<Perms> findPermsByRoleId(Integer id);
}
